package service.edu.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import service.edu.entity.Member;

@Component//此处作用:防止在其他位置注入Client时idea报错
@FeignClient(name = "service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {
    //根据会员id查询出会员信息
    @GetMapping("/ucenter/getMemberInfo/{memberId}")
    Member getMemberInfoByMemberId(@PathVariable String memberId);
}
